package com.sf.fy.uav.common.request.operate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@ApiModel(value = "新增ActivityRewardRules对象", description = "奖励规则表")
public class ActivityRewardRulesRequest implements Serializable {

    private static final long serialVersionUID = 3318900620496359218L;


    private String id;

    @ApiModelProperty("活动id")
    private String activityId;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("产品类型")
    @NotNull(message = "产品类型不能为空")
    private Byte productType;

    @ApiModelProperty("奖励规则")
    @NotBlank(message = "奖励规则不能为空")
    private String rewardRule;

    private Boolean deleted;

    @ApiModelProperty("奖励金额")
    @NotNull(message = "奖励金额不能为空")
    private BigDecimal rewardAmount;
}
